<?php
/**
 * Created by PhpStorm.
 * User: 17464
 * Date: 2020/1/6
 * Time: 17:06
 */

namespace App\Models;

class SendGroupSms extends BaseModel
{
    /**
     * 关联到模型的数据表
     *
     * @var string
     */
    protected $table = 'send_group_sms';

    /**
     * @var string
     */
    protected $primaryKey = 'id';

    /**
     * 分发记录
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function groupSmsLog(){
        return $this->hasMany(SendGroupSmsLog::class, 'group_sms_id', 'id');
    }
}
